'''
    DefaultDriver 
'''

from authDSL.utils import import_module

class Decorators(object):
    
    @staticmethod
    def is_auth(func):
        def wrap(f):
            def wrapped_f(*args):
                f(*args)
            return wrapped_f
        return wrap(func)
    
    @staticmethod
    def has_group(group):
        def wrap(f):
            def wrapped_f(*args):
                f(*args)
            return wrapped_f
        return wrap


class Authentication(object):
    """
    Class that defines functions for authentication. 
    """
    
    def __init__(self):
        pass
    
    def create_user(self, user, password):
        print user, password
        return True
    
    def authenticate(self, user, password):
        print user, password
        return True
    
    def logout(self, user):
        return True
    
    def add_group(self, user, group):
        pass
    
    def remove_group(self, group):
        pass


